package org.ash.consumer.feign.controller;

import jakarta.annotation.Resource;
import org.ash.consumer.feign.service.FeignService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConsumerFeignController {

    @Resource
    private FeignService feignService;

    @GetMapping("consumer/feign/test/{message}")
    public String test(@PathVariable String message) {
        return feignService.getProviderTest(message);
    }
}

